package com.demo1.service;

import com.demo1.model.User;
import com.demo1.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    //属性注入
    @Autowired
    private UserRepository userRepository;

    public User intoBaiDu() {
        return userRepository.intoBaidu();
    }

    public User intoByteDance() {
        return userRepository.intoByteDance();
    }

    public User intoDajiang() {
        return userRepository.intoDajiang();
    }

}
